<link href="../addons/jy_mjifee/resource/css/style.css" rel="stylesheet">
<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
</style>

<div class="fui-page fui-page-current page-commission-index ">
    <div class='fui-content member-page'>
	<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: red;margin-bottom:0.5rem">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name">{{pagedata.member.nickname || '匿名'}}</div>
						<br>
						<div class="name">{{pagedata.member.mobile || '无手机号'}} <span class="label label-warning">{{pagedata.member.level.title}}</span></div>
						
						<div class="code">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('/commission/')" style="border: 1px solid #fff;color:#fff;">{{pagedata.setting.balance_button}}</div>
						</div>
						<div class="bot">
							<div class="jy-2">
							<h5>{{pagedata.setting.balance_total || 0.00}}(元)</h5>
							<h2 style="margin-top:0">{{pagedata.data.balance_total || '0.00'}}</h2>
							</div>
							<div class="jy-2">
							<h5>{{pagedata.setting.commission_1 || 0.00}}(元)</h5>
							<h2 style="margin-top:0">{{pagedata.data.commission_1 || '0.00'}}</h2>
							</div>
						</div>
					</div>
	</div>
	<div style="margin:0.5rem;">
	<div class="fui-cell-group">
			<div class="fui-cell"style="height: 2.85rem;">
				<div class="fui-cell-icon">
					<i class="icon jinyunicon icon-qrcode"></i>
				</div>
				<div class="fui-cell-text">我的邀请码：{{pagedata.member.mid}}
				</div>
			</div>
		</div>
		<div class="fui-block-group col-2" style='overflow: hidden;'>
			<a ng-if="pagedata.member.level.type==3" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/shoporder/')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">店铺总销售额</div>
					<div class="red">本月{{pagedata.data.merchallfee2 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.merchallfee || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>=2 && pagedata.member.bumenid>0" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/order//bumenid='+pagedata.member.level.bumenid)">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">部门总销售额</div>
					<div class="red">本月{{pagedata.data.merchbmfee2 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.merchbmfee || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>0" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/order//workerid='+pagedata.member.id)">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">直推销售额</div>
					<div class="red">本月{{pagedata.data.merchmyfee2 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.merchmyfee || 0.00}}</span>元</div>
				</div>
            </a>
			
			<a ng-if="pagedata.member.level.type>=3" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/goodsfee//type=3')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">门店单品额</div>
					<div class="red">本月{{pagedata.data.goods_fee32 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.goods_fee31 || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>=2 && pagedata.member.bumenid>0" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/goodsfee//type=2')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">部门单品额</div>
					<div class="red">本月{{pagedata.data.goods_fee22 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.goods_fee22 || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>0" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/goodsfee//type=1')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">直推单品额</div>
					<div class="red">本月{{pagedata.data.goods_fee12 || 0.00}}元</div>
					<div class=""><span>合计{{pagedata.data.goods_fee11 || 0.00}}</span>元</div>
				</div>
            </a>
			
		</div>
		<div class="fui-block-group col-2" style='overflow: hidden;'>
            <a class="fui-block-child new  external" href="javascript:;" ng-click="access_json('/commission/main')">
                <div class="icon " style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
                <div class="text new">
					<div class="title">累积收益</div>
                    <div class=""><span>合计{{pagedata.data.commission_total || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type==3" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/feeorder//type=4')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">店铺收益</div>
					<div class=""><span>合计{{pagedata.data.fee4 || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>=2" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/feeorder//type=2')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">部门收益</div>
					<div class=""><span>合计{{pagedata.data.fee2 || 0.00}}</span>元</div>
				</div>
            </a>
			<a ng-if="pagedata.member.level.type>0" class="fui-block-child new external" href="javascript:;" ng-click="access_json('/feeorder//type=0')">
                <div class="icon" style="color: #ff4357;"><i class="icon jinyunicon icon-caifua"></i></div>
				<div class="text new">
					<div class="title">直推收益</div>
					<div class=""><span>合计{{pagedata.data.fee0 || 0.00}}</span>元</div>
				</div>
            </a>
		</div>
		<div class="fui-cell-group">
			<a href="javascript:;" ng-click="access_json('jy_mjifee/qrcode/main')" class="fui-cell">
				<div class="fui-cell-icon ">
					<i class="icon jinyunicon icon-erweima text-yellow"></i>
				</div>
				<div class="fui-cell-text">推广二维码</div>
				<div class="fui-cell-remark" style="font-size: 0.5rem;"></div>
			</a>
		</div>
		<div class="fixed-title" style="margin-top:0.5rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">分红明细</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
		</div>
		<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0" style="margin-top:1rem">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何分红记录!
		</div>
		<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='bold'>
							{{item.day}}分红
						</div>
						<div class='title'>
							<span class="label label-success">{{item.type}}</span>
							<span class="red" style="margin-left:0.3rem">￥{{item.money}}</span>
						</div>
						<div class='gray' style="font-size:0.6rem">{{item.goodstitle ||''}}</div>
					</div>
					<div class="row-remark">
						<div class='gray' style="font-size:0.6rem">{{item.createtime}}</div>
					</div>
				</div>
		</div>
</div>
</div>
</div>
<div ng-if="pagedata.showyewu" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showyewu=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行“绑定门店会员”操作
				</div>
				<div class='fui-cell' style="padding-bottom:0">
					<div class="fui-cell-text c">
						<div class="img_box" id="show_verify_ewm">
						</div>
					</div>
				</div>
				<div class='fui-cell' style="margin-top:0;padding-top:0">
					<div class="fui-cell-text">
					<div class="error c">
						<p style="padding: 0 1.3rem">温馨提示：提供本二维码给准客户扫码，将直接成为您的门店会员！</p>
					</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_mjifee/feeorder/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_mjifee/feeorder/list/');
}
scope.pagedata.show_verify=function(){
	var url=scope.pagedata.member.storeurl;
	scope.tool.qr(url,'show_verify_ewm',150)
}	
</script>